from django import newforms as forms
import models
from google.appengine.ext.db import djangoforms

class ExampleForm(djangoforms.ModelForm):
  class Meta:
        model = models.Example
        exclude = ['added_on', 'translation']

class EntryForm(djangoforms.ModelForm):
  class Meta:
    model = models.Entry

class LanguageForm(djangoforms.ModelForm):
  class Meta:
    model = models.Language

class PosForm(djangoforms.ModelForm):
  class Meta:
    model = models.POS

class TranslationForm(djangoforms.ModelForm):
  src_note = forms.CharField(
    widget=forms.Textarea(attrs={'rows':'3'}))
  target_note = forms.CharField(
    widget=forms.Textarea(attrs={'rows':'3'})) 
  class Meta:
        model = models.Translation
        exclude = ['added_on','entry']
